home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / Includes / files / objects.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-30  |  1.2 KB  |  52 lines

  1. #ifndef FILES_OBJECTS_H
  2. #define FILES_OBJECTS_H TRUE
  3.  
  4. /*
  5. **  $VER: objects.h V0.9B
  6. **
  7. **  Object definitions.
  8. **
  9. **  (C) Copyright 1996-1997 DreamWorld Productions.
  10. **      All Rights Reserved.
  11. */
  12.  
  13. #ifndef DPKERNEL_H
  14. #include <games/dpkernel.h>
  15. #endif
  16.  
  17. /****************************************************************************
  18. ** Object entries.
  19. */
  20.  
  21. struct ObjectEntry { /* Entry stucture for GetObjectList() */
  22.   char  *Name;       /* Pointer to the name, may be NULL */
  23.   APTR  Object;      /* Object is returned here */
  24. };
  25.  
  26. struct DataHeader {  /* Private structure for object headers */
  27.   LONG Type;         /* Type of object, eg STRC, CODE, DATA */
  28.   LONG Next;         /* Offset towards next object */
  29. /*char Name[];          The name of the object */
  30. };
  31.  
  32. /*****************************************************************************
  33. ** Object-File.
  34. */
  35.  
  36. #define OBJVERSION 1
  37. #define TAGS_OBJECTFILE ((ID_SPCTAGS<<16)|ID_OBJECTFILE)
  38.  
  39. struct ObjectFile {
  40.   struct Head    Head;
  41.   struct Source  *Source;
  42.   struct Segment *Segments;
  43.   APTR   Data;
  44. };
  45.  
  46. #define OBJA_Source   (12|TAPTR)
  47. #define OBJA_Segments (16|TAPTR)
  48. #define OBJA_Data     (20|TAPTR)
  49.  
  50. #endif /* FILES_OBJECTS_H */
  51.  
  52.